package org.learn.tankgame;

import javax.swing.*;

public class QjjTankGame01 extends JFrame {
    //定义一个MyPanel
    MyPanel mp = null;
    public static void main(String[] args) {
        QjjTankGame01 qjjTankGame01 = new QjjTankGame01();
    }
    public QjjTankGame01(){
        //初始化面板
        mp = new MyPanel();
        //把面板放入画框(窗口)
        this.add(mp);
        //设置窗口大小
        this.setSize(1000,750);
        this.setVisible(true);//可视
        //点击窗口的红叉程序完全退出
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    }
}
